package tinking.java.operator;

public class Precedence {

    public static void main(String[] args) {
        int x = 1, y = 2, z = 3;

        // 不加括号，除法优先
        int a = x + y - 2/2 + z;
        // 加括号，括号内的运算符优先
        int b = x + (y - 2)/(2 + z);

        System.out.println("a = " + a);
        System.out.println("b = " + b);
    }
}